.class public Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;
.super Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisViewHolder;
.source "AnalysisResultGeneralViewHolder.java"


# instance fields
.field private final a:[I

.field private final b:[I

.field private final c:[I

.field private final d:[I

.field private e:Landroid/content/Context;

.field private f:Landroid/widget/LinearLayout;

.field private g:Landroid/widget/LinearLayout;

.field private h:Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralPieView;

.field private i:Landroid/widget/Button;

.field private j:Landroid/widget/ProgressBar;

.field private k:[Ljava/lang/String;

.field private l:[J

.field private m:[I

.field private n:I

.field private o:Ljava/lang/String;

.field private p:Landroid/widget/TextView;

.field private q:Landroid/widget/TextView;

.field private r:Landroid/widget/TextView;

.field private s:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisViewHolder;-><init>(Landroid/view/View;)V

    const/4 p1, 0x7

    new-array p1, p1, [I

    .line 2
    fill-array-data p1, :array_0

    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->a:[I

    const/4 p1, 0x6

    new-array v0, p1, [I

    .line 3
    fill-array-data v0, :array_1

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->b:[I

    new-array v0, p1, [I

    .line 4
    fill-array-data v0, :array_2

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->c:[I

    new-array p1, p1, [I

    .line 5
    fill-array-data p1, :array_3

    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->d:[I

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->k()V

    .line 7
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->j()V

    return-void

    :array_0
    .array-data 4
        0x7f06004e
        0x7f060045
        0x7f060048
        0x7f060040
        0x7f060053
        0x7f06004b
        0x7f060044
    .end array-data

    :array_1
    .array-data 4
        0x7f090100
        0x7f0900fd
        0x7f0900fe
        0x7f0900fc
        0x7f090102
        0x7f0900ff
    .end array-data

    :array_2
    .array-data 4
        0x7f0900f9
        0x7f0900f3
        0x7f0900f5
        0x7f0900f1
        0x7f0900fb
        0x7f0900f7
    .end array-data

    :array_3
    .array-data 4
        0x7f0900f8
        0x7f0900f2
        0x7f0900f4
        0x7f0900f0
        0x7f0900fa
        0x7f0900f6
    .end array-data
.end method

.method private a(I)V
    .locals 5

    .line 48
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    aget-wide v3, v2, p1

    invoke-static {v3, v4}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->s:Ljava/lang/String;

    .line 49
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->d:[I

    aget v2, v2, p1

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->q:Landroid/widget/TextView;

    .line 50
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->c:[I

    aget v2, v2, p1

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->r:Landroid/widget/TextView;

    .line 51
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->q:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v0

    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->k:[Ljava/lang/String;

    aget-object v2, v2, p1

    invoke-virtual {v0, v2}, Landroid/text/TextPaint;->measureText(Ljava/lang/String;)F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    .line 52
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->r:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v2

    iget-object v3, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->s:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/text/TextPaint;->measureText(Ljava/lang/String;)F

    move-result v2

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    .line 53
    iget-object v3, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->d:[I

    array-length v3, v3

    add-int/lit8 v3, v3, -0x1

    if-eq p1, v3, :cond_1

    add-int/2addr v0, v2

    iget v3, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->n:I

    if-le v0, v3, :cond_1

    sub-int/2addr v3, v2

    if-lez v3, :cond_0

    .line 54
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->q:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 55
    iput v3, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 56
    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->q:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 57
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    aget-wide v2, v1, p1

    invoke-static {v2, v3}, Lcom/estrongs/fs/util/f;->d(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->s:Ljava/lang/String;

    .line 58
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->r:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->s:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 59
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->q:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->k:[Ljava/lang/String;

    aget-object p1, v1, p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private f()V
    .locals 5

    const/4 v0, 0x0

    .line 1
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->b:[I

    array-length v2, v1

    if-ge v0, v2, :cond_0

    .line 2
    iget-object v2, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    aget v1, v1, v0

    invoke-virtual {v2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    check-cast v1, Landroid/graphics/drawable/GradientDrawable;

    .line 3
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->m:[I

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v3

    iget-object v4, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->a:[I

    aget v4, v4, v0

    invoke-virtual {v3, v4}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v3

    aput v3, v2, v0

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->m:[I

    aget v2, v2, v0

    invoke-virtual {v1, v2}, Landroid/graphics/drawable/GradientDrawable;->setColor(I)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->m:[I

    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->a:[I

    array-length v1, v1

    add-int/lit8 v1, v1, -0x1

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget-object v3, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->a:[I

    array-length v4, v3

    add-int/lit8 v4, v4, -0x1

    aget v3, v3, v4

    invoke-virtual {v2, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    aput v2, v0, v1

    return-void
.end method

.method private g()V
    .locals 12

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 3
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->o:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v2

    const/4 v3, 0x0

    const/4 v4, 0x7

    if-eqz v2, :cond_4

    const/4 v2, 0x0

    const/4 v5, 0x0

    .line 4
    :goto_0
    iget-object v6, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->m:[I

    array-length v7, v6

    if-ge v5, v7, :cond_0

    .line 5
    aget v6, v6, v5

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v0, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_0
    const-wide/16 v5, 0x0

    move-wide v7, v5

    .line 6
    :goto_1
    iget-object v9, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    array-length v10, v9

    if-ge v2, v10, :cond_2

    .line 7
    aget-wide v10, v9, v2

    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v9

    invoke-interface {v1, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 8
    iget-object v9, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    array-length v10, v9

    add-int/lit8 v10, v10, -0x2

    if-ge v2, v10, :cond_1

    .line 9
    aget-wide v10, v9, v2

    add-long/2addr v7, v10

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 10
    :cond_2
    invoke-interface {v1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v9

    cmp-long v2, v9, v5

    if-gtz v2, :cond_3

    goto :goto_2

    :cond_3
    const/high16 v2, 0x3f800000    # 1.0f

    long-to-float v3, v7

    mul-float v3, v3, v2

    .line 11
    invoke-interface {v1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    long-to-float v2, v4

    div-float/2addr v3, v2

    const/high16 v2, 0x42c80000    # 100.0f

    mul-float v3, v3, v2

    goto :goto_2

    .line 12
    :cond_4
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->o:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->J0(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 13
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->m:[I

    const/4 v5, 0x3

    aget v2, v2, v5

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 14
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->m:[I

    const/4 v6, 0x6

    aget v2, v2, v6

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 15
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    aget-wide v7, v2, v5

    invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 16
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    aget-wide v5, v2, v6

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 17
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    aget-wide v4, v2, v4

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 18
    :cond_5
    :goto_2
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->h:Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralPieView;

    invoke-virtual {v2, v0, v1, v3}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralPieView;->setColorAndData(Ljava/util/List;Ljava/util/List;F)V

    return-void
.end method

.method private h()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->f:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->g:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->j:Landroid/widget/ProgressBar;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->f()V

    .line 5
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->d:[I

    array-length v0, v0

    if-ge v1, v0, :cond_0

    .line 6
    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->a(I)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 7
    :cond_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->g()V

    return-void
.end method

.method private i()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    return v0
.end method

.method private j()V
    .locals 1

    const/4 v0, 0x7

    new-array v0, v0, [I

    .line 1
    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->m:[I

    const/16 v0, 0x8

    new-array v0, v0, [J

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    return-void
.end method

.method private k()V
    .locals 2

    .line 1
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f0900ec

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->f:Landroid/widget/LinearLayout;

    .line 2
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f0900ed

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->g:Landroid/widget/LinearLayout;

    .line 3
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f0900eb

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->i:Landroid/widget/Button;

    .line 4
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f090101

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralPieView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->h:Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralPieView;

    .line 5
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f0900ef

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->j:Landroid/widget/ProgressBar;

    .line 6
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f090cc2

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->p:Landroid/widget/TextView;

    return-void
.end method


# virtual methods
.method public a(Les/pg;Landroid/content/Context;)V
    .locals 20

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    .line 1
    iput-object v2, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    .line 2
    invoke-virtual/range {p1 .. p1}, Les/pg;->a()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->o:Ljava/lang/String;

    .line 3
    invoke-virtual/range {p1 .. p1}, Les/pg;->l()Z

    move-result v2

    const/4 v3, 0x4

    const/4 v4, 0x0

    if-nez v2, :cond_0

    invoke-virtual/range {p1 .. p1}, Les/pg;->m()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 4
    iget-object v1, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->f:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 5
    iget-object v1, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->g:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 6
    iget-object v1, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->j:Landroid/widget/ProgressBar;

    invoke-virtual {v1, v4}, Landroid/widget/ProgressBar;->setVisibility(I)V

    return-void

    .line 7
    :cond_0
    invoke-static {}, Lcom/estrongs/android/util/h0;->f()Ljava/util/List;

    move-result-object v2

    .line 8
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const-wide/16 v5, 0x0

    move-wide v7, v5

    :cond_1
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    const-string v10, "/"

    const/4 v11, 0x2

    if-eqz v9, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/String;

    .line 9
    iget-object v12, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->o:Ljava/lang/String;

    invoke-virtual {v12, v9}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v12

    if-nez v12, :cond_2

    iget-object v12, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->o:Ljava/lang/String;

    invoke-virtual {v12, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 10
    :cond_2
    invoke-static {v9}, Lcom/estrongs/fs/util/f;->h(Ljava/lang/String;)[J

    move-result-object v9

    .line 11
    aget-wide v12, v9, v4

    aget-wide v10, v9, v11

    mul-long v12, v12, v10

    add-long/2addr v7, v12

    goto :goto_0

    .line 12
    :cond_3
    iget-object v2, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    const/4 v9, 0x7

    aput-wide v7, v2, v9

    const-string v2, "img"

    .line 13
    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    if-eqz v7, :cond_4

    .line 14
    iget-object v7, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v12

    aput-wide v12, v7, v4

    :cond_4
    const-string v2, "doc"

    .line 15
    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    const/4 v8, 0x1

    if-eqz v7, :cond_5

    .line 16
    iget-object v7, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v12

    aput-wide v12, v7, v8

    :cond_5
    const-string v2, "audio"

    .line 17
    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    if-eqz v7, :cond_6

    .line 18
    iget-object v7, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v12

    aput-wide v12, v7, v11

    :cond_6
    const-string v2, "apk"

    .line 19
    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    const/4 v12, 0x3

    if-eqz v7, :cond_7

    .line 20
    iget-object v7, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v13

    aput-wide v13, v7, v12

    :cond_7
    const-string v2, "video"

    .line 21
    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    if-eqz v7, :cond_8

    .line 22
    iget-object v7, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v13

    aput-wide v13, v7, v3

    :cond_8
    const-string v2, "other"

    .line 23
    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    const/4 v13, 0x5

    if-eqz v7, :cond_9

    .line 24
    iget-object v7, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    invoke-virtual {v1, v2}, Les/pg;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v14

    aput-wide v14, v7, v13

    .line 25
    :cond_9
    iget-object v2, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->l:[J

    aget-wide v14, v2, v9

    aget-wide v16, v2, v4

    aget-wide v18, v2, v8

    add-long v16, v16, v18

    aget-wide v18, v2, v11

    add-long v16, v16, v18

    aget-wide v18, v2, v12

    add-long v16, v16, v18

    aget-wide v18, v2, v3

    add-long v16, v16, v18

    aget-wide v18, v2, v13

    add-long v16, v16, v18

    sub-long v14, v14, v16

    const/4 v7, 0x6

    aput-wide v14, v2, v7

    .line 26
    aget-wide v14, v2, v7

    cmp-long v16, v14, v5

    if-gez v16, :cond_a

    .line 27
    aput-wide v5, v2, v7

    .line 28
    aget-wide v5, v2, v4

    aget-wide v14, v2, v8

    add-long/2addr v5, v14

    aget-wide v14, v2, v11

    add-long/2addr v5, v14

    aget-wide v14, v2, v12

    add-long/2addr v5, v14

    aget-wide v14, v2, v3

    add-long/2addr v5, v14

    aget-wide v14, v2, v13

    add-long/2addr v5, v14

    aput-wide v5, v2, v9

    :cond_a
    new-array v2, v9, [Ljava/lang/String;

    .line 29
    iget-object v5, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v6, 0x7f11030b

    .line 30
    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v4

    iget-object v5, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v6, 0x7f110308

    .line 31
    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v8

    iget-object v5, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v6, 0x7f110307

    .line 32
    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v11

    iget-object v5, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v6, 0x7f110306

    .line 33
    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v12

    iget-object v5, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v6, 0x7f11030c

    .line 34
    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v3

    iget-object v3, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v5, 0x7f11030a

    .line 35
    invoke-virtual {v3, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v13

    iget-object v3, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v5, 0x7f110910

    .line 36
    invoke-virtual {v3, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v7

    iput-object v2, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->k:[Ljava/lang/String;

    .line 37
    invoke-direct/range {p0 .. p0}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->i()I

    move-result v2

    iget-object v3, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->h:Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralPieView;

    invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    iget v3, v3, Landroid/view/ViewGroup$LayoutParams;->width:I

    sub-int/2addr v2, v3

    iget-object v3, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    .line 38
    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v5, 0x7f0700c6

    invoke-virtual {v3, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v3

    iget-object v3, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    .line 39
    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v5, 0x7f070105

    invoke-virtual {v3, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v3

    iget-object v3, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    .line 40
    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v5, 0x7f0700f2

    invoke-virtual {v3, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v3

    iget-object v3, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    .line 41
    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v5, 0x7f0700ad

    invoke-virtual {v3, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v3

    div-int/2addr v2, v11

    iput v2, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->n:I

    .line 42
    invoke-virtual/range {p1 .. p1}, Les/pg;->a()Ljava/lang/String;

    move-result-object v1

    .line 43
    invoke-static {v1}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_c

    invoke-virtual {v1, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_b

    goto :goto_1

    .line 44
    :cond_b
    iget-object v1, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->p:Landroid/widget/TextView;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_2

    .line 45
    :cond_c
    :goto_1
    iget-object v1, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->p:Landroid/widget/TextView;

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 46
    iget-object v1, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->p:Landroid/widget/TextView;

    iget-object v2, v0, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->e:Landroid/content/Context;

    const v3, 0x7f1100b2

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 47
    :goto_2
    invoke-direct/range {p0 .. p0}, Lcom/estrongs/android/pop/app/analysis/viewholders/AnalysisResultGeneralViewHolder;->h()V

    return-void
.end method
